<?php get_header(); ?>
<div class="grid_12 blog-title">
	<h1><?php _e('Browsing the ', 'unicorn'); ?>"<?php echo single_tag_title();?>"<?php _e(' Category ', 'unicorn'); ?>&rarr;</h1>
	<div class="clear"></div>
	<?php if(category_description($category)): ?>
		<?php echo category_description($category); ?>
	<?php endif; ?>
</div>
<?php $sidebar_position = get_option('reedwan_sidebar_position', 'true');?>
<?php if($sidebar_position=='left'):  ?>
<!-- Left Sidebar -->
<div class="grid_4 sidebar">
	<?php get_sidebar();?>
</div> 
<?php endif; ?>
	<?php 		
	$category_ID = get_query_var('cat');
	$category_blog_style = get_tax_meta($category_ID,'reedwan_blog_style');		
	
	if ($category_blog_style == 'blog-style-1') 
	{		
		get_template_part('includes/blog-style-one');	
	} 
	else if ($category_blog_style == 'blog-style-2') 
	{		
		get_template_part('includes/blog-style-two');	
	} 
	else if ($category_blog_style == 'blog-style-3') 
	{		
		get_template_part('includes/blog-style-three');	
	} 
	else if ($category_blog_style == 'blog-style-4') 
	{		
		get_template_part('includes/blog-style-four');	
	}
	else 
	{		
		get_template_part('includes/blog-style-two');	
	}
	?>
<?php if($sidebar_position=='right'):  ?>
<!-- Right Sidebar -->
<div class="grid_4 sidebar">
	<?php get_sidebar();?>
</div>
<?php endif; ?>	
			
<?php get_footer(); ?>